<template>
  <div class="top">
    <div class="nav">
        <div class="xian">
            <p>西安<van-icon name="arrow-down" /></p>
            
        </div>
        <div><van-search v-model="value" placeholder="搜索" @search-padding="0"/></div>
        <div class="niu">
            <van-icon name="wap-nav" /> | <van-icon name="cross" @click="back()"/>
        </div>

    </div>
    <div class="tubiao">
        <ul>
            <li v-for="v in arr" :key="v.id">
                <img :src="v.img">
                <p>{{v.title}}</p>
            </li>
        </ul>
    </div>
    

  </div>
</template>

<script>
export default {
    methods:{
        back(){
            this.$router.push("/index")
        }
    },

    data() {
    return {
      value: '',
      arr:[
      {id:4111,"title":"手机充值","img":require("@/assets/index/long/long_01.jpg")},
      {id:4112,"title":"转账","img":require("@/assets/index/long/long_02.jpg")},
      {id:4113,"title":"信用卡还卡","img":require("@/assets/index/long/long_03.jpg")},
      {id:4114,"title":"党费","img":require("@/assets/index/long/long_04.jpg")},
      {id:4115,"title":"二维码取款","img":require("@/assets/index/long/long_05.jpg")},
      {id:4116,"title":"生活缴费","img":require("@/assets/index/long/long_06.jpg")},
      {id:4117,"title":"鼓励金","img":require("@/assets/index/long/long_07.jpg")},
      {id:4118,"title":"龙钱宝","img":require("@/assets/index/long/long_08.jpg")},
      {id:4119,"title":"交易记录","img":require("@/assets/index/long/long_09.jpg")},
      {id:4110,"title":"更多","img":require("@/assets/index/long/long_10.jpg")},
      ]
    };
  },


}
</script>

<style lang="scss" scoped>
    .top {
        width: 100%;
        height: 2rem;
        background: #0065b3;
        position: relative;
        
        .nav {
            width: 90%;
            height: .32rem;
            margin:auto;
            // background: #999;
            transform: translateY(0.5rem);
            display: flex;
            justify-content: space-between;
            align-items: center;
            color: #fff;
            .niu {
                width: .7rem;
                height: .32rem;
                box-sizing: border-box;
                border: 1px solid #fff;
                border-radius: .16rem;
                display: flex;
                justify-content: space-around;
                align-items: center;
            }
        }
    }
    .van-search {
        // background: #0065b3;
        padding: 0;
        border-radius: .2rem;
    }
    .xian {
        // display: flex;
        p {
            font-size: .16rem;
        }
        
        // background: #999;
    }
    .tubiao {
        width: 90%;
        height: 1.62rem;
        margin: auto;
        background: #fff;
        position: absolute;
        top: 1.03rem;
        left:5%;
        border-radius: .15rem;
        ul {
            width: 100%;
            height: 100%;
            display: flex;
            flex-wrap: wrap;
            align-content: space-around;
            li {
                width: 20%;
                display: flex;
                flex-direction:column;
                align-items: center;
                p {
                    font-size: .12rem;
                    margin-top: .1rem;
                }
            }
        }
    }
</style>